package com.idak.rdv.db;

// Generated 15 juin 2012 23:31:31 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * RefSpeciality generated by hbm2java
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "REF_SPECIALITY", catalog = "rdv")
public class RefSpeciality implements java.io.Serializable {

	private Integer specialityId;
	private String shortLabel;
	private String longLabel;
	private String speciality;
	private Date dtCreate;
	private Date dtModif;
	private Date dtEnd;
	private Set<Doctor> doctors = new HashSet<Doctor>(0);

	public RefSpeciality() {
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "SPECIALITY_ID", unique = true, nullable = false)
	public Integer getSpecialityId() {
		return this.specialityId;
	}

	public void setSpecialityId(Integer specialityId) {
		this.specialityId = specialityId;
	}

	@Column(name = "SHORT_LABEL", nullable = false, length = HibernateConstant.LENGTH.SHORT_LABEL)
	public String getShortLabel() {
		return this.shortLabel;
	}

	public void setShortLabel(String shortLabel) {
		this.shortLabel = shortLabel;
	}

	@Column(name = "LONG_LABEL", nullable = false, length = HibernateConstant.LENGTH.LONG_LABEL)
	public String getLongLabel() {
		return this.longLabel;
	}

	public void setLongLabel(String longLabel) {
		this.longLabel = longLabel;
	}

	@Column(name = "SPECIALITY", nullable = false, length = HibernateConstant.LENGTH.SPECIALITY)
	public String getSpeciality() {
		return this.speciality;
	}

	public void setSpeciality(String speciality) {
		this.speciality = speciality;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DT_CREATE", nullable = false, length = HibernateConstant.LENGTH.DATETIME)
	public Date getDtCreate() {
		return this.dtCreate;
	}

	public void setDtCreate(Date dtCreate) {
		this.dtCreate = dtCreate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DT_MODIF", length = HibernateConstant.LENGTH.DATETIME)
	public Date getDtModif() {
		return this.dtModif;
	}

	public void setDtModif(Date dtModif) {
		this.dtModif = dtModif;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DT_END", length = HibernateConstant.LENGTH.DATETIME)
	public Date getDtEnd() {
		return this.dtEnd;
	}

	public void setDtEnd(Date dtEnd) {
		this.dtEnd = dtEnd;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "refSpeciality")
	public Set<Doctor> getDoctors() {
		return this.doctors;
	}

	public void setDoctors(Set<Doctor> doctors) {
		this.doctors = doctors;
	}

}
